#!/usr/bin/env python
# -*- coding:utf-8 -*-

from .apiVersionResource import apiversion_blueprint
from .articleResource import article_blueprint
from .psyConsultantResource import psyconsultant_blueprint
from .consulterResource import consulter_blueprint
from .chatMessageResource import chatmessage_blueprint
from .consultMessageResource import consultmessage_blueprint
from .consultingResource import consulting_blueprint
from .reservationResource import reservation_blueprint
from .sysUserResource import sysuser_blueprint
from .sysRotationPicResource import sysrotationpic_blueprint
from .introductionResource import introduction_blueprint
from .reservationConsulterResource import reservationconsulter_blueprint


def init_router(app):
    from api_1_0.apiVersionResource import apiversion_blueprint
    app.register_blueprint(apiversion_blueprint, url_prefix="/api_1_0")

    # article blueprint register
    from api_1_0.articleResource import article_blueprint
    app.register_blueprint(article_blueprint, url_prefix="/api_1_0")
    
    # psyConsultant blueprint register
    from api_1_0.psyConsultantResource import psyconsultant_blueprint
    app.register_blueprint(psyconsultant_blueprint, url_prefix="/api_1_0")
    
    # consulter blueprint register
    from api_1_0.consulterResource import consulter_blueprint
    app.register_blueprint(consulter_blueprint, url_prefix="/api_1_0")
    
    # chatMessage blueprint register
    from api_1_0.chatMessageResource import chatmessage_blueprint
    app.register_blueprint(chatmessage_blueprint, url_prefix="/api_1_0")
    
    # consultMessage blueprint register
    from api_1_0.consultMessageResource import consultmessage_blueprint
    app.register_blueprint(consultmessage_blueprint, url_prefix="/api_1_0")
    
    # consulting blueprint register
    from api_1_0.consultingResource import consulting_blueprint
    app.register_blueprint(consulting_blueprint, url_prefix="/api_1_0")
    
    # reservation blueprint register
    from api_1_0.reservationResource import reservation_blueprint
    app.register_blueprint(reservation_blueprint, url_prefix="/api_1_0")
    
    # sysUser blueprint register
    from api_1_0.sysUserResource import sysuser_blueprint
    app.register_blueprint(sysuser_blueprint, url_prefix="/api_1_0")
    
    # sysRotationPic blueprint register
    from api_1_0.sysRotationPicResource import sysrotationpic_blueprint
    app.register_blueprint(sysrotationpic_blueprint, url_prefix="/api_1_0")
    
    # introduction blueprint register
    from api_1_0.introductionResource import introduction_blueprint
    app.register_blueprint(introduction_blueprint, url_prefix="/api_1_0")
    
    # reservationConsulter blueprint register
    from api_1_0.reservationConsulterResource import reservationconsulter_blueprint
    app.register_blueprint(reservationconsulter_blueprint, url_prefix="/api_1_0")
    
